package oj;

import java.util.Scanner;

public class Day20F {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        StringBuilder sb=new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            sb.append(str.charAt(i));
        }
        sb.reverse();
        sb.toString();
        System.out.println(sb);
    }
}
